<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="/static/js/claim.js"></script>
</head>
<body>
<table id="dept_datagrid">
</table>
<div id="tb">

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <%--<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" data-cmd="del">删除</a>--%>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" data-cmd="itemView">查看数据明细</a>
    关键字:<input name="keyword" class="easyui-textbox" prompt="请输入保单号">
    报案时间:<input id="beginTime" name="beginTime" class="easyui-datebox"  prompt="请输入开始日期">~
    <input id="endTime" name="endTime" class="easyui-datebox"  prompt="请输入结束日期">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query"></a>
</div>
<div id="dept_dialog">
    <form id="dept_form" method="post">
        <input id="deptId" name="id" type="hidden">
        <table align="center" style="margin: 15px;">
            <tr>
                <td>保单编号：</td>
                <td><input type="text" name="staging" class="easyui-textbox" prompt="请输入正确的保单编号"
                           invalidMessage="不存在该保单"
                           validType="remote['/claim/validateStaging.do?id='+deptId.value,'staging']"
                ></td>
            </tr>
            <tr>
                <td>报案人：</td>
                <td><input type="text" name="reporter" class="easyui-textbox"  prompt="报案人姓名"
                ></td>
            </tr>
            <tr>
                <td>电话：</td>
                <td><input type="text" name="tel" class="easyui-textbox"  prompt="报案人电话"
                ></td>
            </tr>

            <tr >
                <td colspan="2" align="center">添加明细</td>
            </tr>

            <tr>
                <td>报案地址：</td>
                <td><input type="text" name="item.site" class="easyui-textbox"  prompt="报案地址"
                ></td>
            </tr>
            <tr>
                <td>车牌号：</td>
                <td><input type="text" name="item.carnumber" class="easyui-textbox"  prompt="车牌号"
                ></td>
            </tr>

            <div id="btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
            </div>
        </table>
    </form>
</div>

<div id="item_dialog">
    <form id="item_form" method="post">
        <table align="center" style="margin: 15px;">
            <tr>
                <td>报案人名：<input type="text" name="reporter" class="easyui-textbox" readonly="readonly"
                ></td>
                <td>联系电话：<input type="text" name="tel" class="easyui-textbox" readonly="readonly"
                ></td>
            </tr>

            <tr>
                <td>保单编号：<input type="text" name="staging" class="easyui-textbox" readonly="readonly"
                ></td>
                <td>报案地址：<input type="text" name="site" class="easyui-textbox" readonly="readonly"
                ></td>
            </tr>
            <tr>
                <td>事故车牌：<input type="text" name="carnumber" class="easyui-textbox" readonly="readonly"
                ></td>
                <td>处理状态：<input type="text" name="state" class="easyui-textbox" readonly="readonly"
                ></td>
            </tr>
            <tr>
                <td>到场员工：<input type="text" name="employee.username" class="easyui-textbox" readonly="readonly"
                ></td>
                <td>责任指定：<input type="text" name="duty" class="easyui-textbox" readonly="readonly"
                ></td>
            </tr>
            <tr>
                <td>事故详情：<input type="text" name="particulars" class="easyui-textbox"  data-options="multiline:true"  style="width:175px;height:100px" readonly="readonly"
                ></td>
                <td>员工备注：<input type="text" name="remark" class="easyui-textbox"  data-options="multiline:true"  style="width:175px;height:100px" readonly="readonly"
                ></td>
            </tr>

        </table>
    </form>
</div>


</body>
</html>
